/**
 * Project Name:springBoot-service
 * File Name:BussinessExection.java
 * Package Name:com.libra.service
 * Date:2018年8月3日下午6:19:09
 * Copyright (c) 2018, wangzhch All Rights Reserved.
 *
*/

package com.libra.service.exception;

import lombok.Data;

/**
 * ClassName:BussinessExection <br/>
 * Function: TODO ADD FUNCTION. <br/>
 * Reason:	 TODO ADD REASON. <br/>
 * Date:     2018年8月3日 下午6:19:09 <br/>
 * @author   wangzhch
 * @version  
 * @since    JDK 1.8
 * @see 	 
 */
@Data
public class BussinessExection extends Exception {
	/**
	 * 
	 */
	private static final long serialVersionUID = -966308783994018455L;

	private String code;
	private String message;
	
	public BussinessExection() {
		super();
	}
	public BussinessExection(String code,String message) {
		super();
		this.message = message;
		this.code = code;
	}
	@Override
	public String toString() {
		return "MyException [message=" + message + ", code=" + code + "]";
	}
}

